import React from "react";
import { Redirect } from "react-router-dom";
import { isLogin } from "../utils/auth";
function User() {
  if (!isLogin()) {
    return <Redirect to="/login"></Redirect>;
  }
  return (
    <div>
      <h1>User</h1>
    </div>
  );
}

export default User;
